<?php

namespace app\admin\model;

use think\Model;

class Goods extends Model
{
    protected $pk='goods_id';
    protected $table='lm_goods';

    function cate()
    {
        return $this->hasOne("Category",'id','cid');
   }
}